package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_sms
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_sms")
public class SysSms implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * ID
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 消息标题
     */
    @Column(name = "es_title", length = 100)
    private String esTitle;
    
    /**
     * 发送方式：1短信 2邮件 3微信
     */
    @Column(name = "es_type", length = 1)
    private String esType;
    
    /**
     * 接收人
     */
    @Column(name = "es_receiver", length = 50)
    private String esReceiver;
    
    /**
     * 发送所需参数Json格式
     */
    @Column(name = "es_param", length = 1000)
    private String esParam;
    
    /**
     * 推送内容
     */
    @Column(name = "es_content", length = 2147483647)
    private String esContent;
    
    /**
     * 推送时间
     */
    @Column(name = "es_send_time")
    private java.time.LocalDateTime esSendTime;
    
    /**
     * 推送状态 0未推送 1推送成功 2推送失败 -1失败不再发送
     */
    @Column(name = "es_send_status", length = 1)
    private String esSendStatus;
    
    /**
     * 发送次数 超过5次不再发送
     */
    @Column(name = "es_send_num")
    private Integer esSendNum;
    
    /**
     * 推送失败原因
     */
    @Column(name = "es_result", length = 255)
    private String esResult;
    
    /**
     * 备注
     */
    @Column(name = "remark", length = 500)
    private String remark;
    
    /**
     * 创建人登录名称
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人登录名称
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "SysSms{" +
            "id=" + id +
            ", esTitle=" + esTitle +
            ", esType=" + esType +
            ", esReceiver=" + esReceiver +
            ", esParam=" + esParam +
            ", esContent=" + esContent +
            ", esSendTime=" + esSendTime +
            ", esSendStatus=" + esSendStatus +
            ", esSendNum=" + esSendNum +
            ", esResult=" + esResult +
            ", remark=" + remark +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
        '}';
    }
} 